<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
		Schema::create('users', function($table)
		{
		    $table->increments('id');
		    $table->string('username',20);
		    $table->string('password',64);
			$table->boolean('销售管理')->default(false);
			$table->boolean('仓库管理')->default(false);
			$table->boolean('财务管理')->default(false);
			$table->boolean('经营分析')->default(false);
			$table->boolean('基础数据')->default(false);
			$table->boolean('系统维护')->default(false);
		    $table->rememberToken();
		    $table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
		Schema::drop('users');
	}

}
